package com.access.test;

/**
 * Created by hrd on 2016/7/13.
 */

import com.access.controller.AccessController;
import com.access.controller.PolicyGenerator;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {
    public test() {
    }

    public static void main(String[] args) {
        new PolicyGenerator();
        new AccessController();
        String[] strings = new String[]{"beijiysaodu", "1-7", ""};
        SimpleDateFormat format = new SimpleDateFormat("HH");
        Date date = new Date();
        String env = format.format(date);
        String[] var7 = strings;
        int var8 = strings.length;

        for(int var9 = 0; var9 < var8; ++var9) {
            String s = var7[var9];
            if(s.indexOf("-") >= 0) {
                String[] time = s.split("-");
                int h = Integer.parseInt(env);
                if(h >= Integer.parseInt(time[0]) && h <= Integer.parseInt(time[1])) {
                    env = s;
                }
            }
        }

        System.out.println(env);
    }
}
